def add(var x:Int, var y:Int):Int {
    var z = 1;
    return x + y + z;
}

print(add(1, 2));

def fac(var n:Int):Int {
    var i = 1;
    var t = 1;
    while (i <= n) {
        t = t * i;
        i = i + 1;
    }

    return t;
}

print(fac(6));
